<!--
- @founder   IT柏拉图, https: //weibo.com/itprato
- @author    DedeCMS团队
- @copyright Copyright (c) 2007 - 2021, 上海卓卓网络科技有限公司 (DesDev, Inc.)
--->

<html>
<head>
<meta charset="{dede:global.cfg_soft_lang/}" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>模块管理</title>
<meta name="copyright" content="2007-2021 DedeCMS, 上海卓卓网络科技有限公司 (DesDev, Inc.)" />
<link rel="icon" href="/favicon.ico" />
<!-- CSS FILES -->
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/pkg/uikit/css/uikit.min.css" />
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/css/manage.dede.css">
<style type="text/css">
.uk-table td{
padding: 6px 12px;
vertical-align: top;
height: 35px;
}
</style>
</head>
<body>
<!-- 列表头部 -->
<div id="Table_Header_202X2W2X1X292F" class="uk-card uk-card-small uk-card-default" uk-sticky="bottom: #offset">
<div id="Header_1W2T2S2T1V252B" class="uk-card-header">
<div class="uk-grid uk-grid-small uk-text-small">
<span><ul class="uk-breadcrumb"><li><a href="module_main.php"><span>模块管理</span></a></li><li>模块修改</li></ul></span>
</div>
</div>
</div>
<!-- /列表头部 -->
<!-- 列表主体 -->
<div class="uk-card uk-card-small uk-card-default" style="top:-20px;margin-bottom: 50px;">
<div class="uk-card-body uk-overflow-auto" grid>
<div class="uk-child-width-1-1 uk-padding">
<table width="98%" border="0" cellpadding="1" cellspacing="1" class="uk-table">
<form action="module_make.php" method="post" enctype="multipart/form-data" name="form1">
<input type='hidden' name='action' value='edit'>
<tr>
<td width="19%" ><b>模块名称：</b></td>
<td width="81%" >
<input name="modulname" type="text" id="modulname" value="<?php echo $name; ?>" class="uk-input uk-form-small uk-form-width-large"/>
</td>
</tr>
<tr>
<td ><b>语言编码：</b></td>
<td >
<input name="lang" type="radio" id="lang2" class='uk-radio' value='utf-8' {dede:if global.lang=="utf-8" } checked='1' {/dede:if} /> UTF8
</td>
</tr>
<tr>
<td ><b>封装类型：</b></td>
<td >
<input name="moduletype" type="radio" id="moduletype1" class='uk-radio' value='soft' <?php if($moduletype=='soft' )
echo " checked='1' " ; ?>/> 模块 &nbsp;&nbsp;
<input name="moduletype" type="radio" id="moduletype2" class='uk-radio' value='templets' <?php
if($moduletype=='templets' ) echo " checked='1' " ; ?>/> 模板 &nbsp;&nbsp;
<input name="moduletype" type="radio" id="moduletype3" class='uk-radio' value='plus' <?php if($moduletype=='plus' )
echo " checked='1' " ; ?>/> 小插件 &nbsp;&nbsp;
<input name="moduletype" type="radio" id="moduletype3" class='uk-radio' value='patch' <?php if($moduletype=='patch' )
echo " checked='1' " ; ?>/> 补丁
</td>
</tr>
<tr>
<td ><b>联系Email：</b></td>
<td ><input name="email" type="text" id="email" value="<?php echo $email; ?>" class="uk-input uk-form-small uk-form-width-large" disabled/> </td>
</tr>
<tr>
<td ><b>模块识别码：</b></td>
<td >
<input type='text' name='hash' value='<?php echo $hash; ?>' class="uk-input uk-form-small uk-form-width-large" disabled/>
</td>
</tr>
<tr>
<td ><b>开发团队：</b></td>
<td ><input name="team" type="text" id="team" value="<?php echo $team; ?>" class="uk-input uk-form-small uk-form-width-large" disabled/> </td>
</tr>
<tr>
<td ><b>发布时间：</b></td>
<td >
<input name="mtime" type="text" id="mtime" value="<?php echo $time; ?>" class="uk-input uk-form-small uk-form-width-large"/>
</td>
</tr>
<tr>
<td ><b>官方网址：</b></td>
<td ><input name="url" type="text" id="url" value="<?php echo $url; ?>" class="uk-input uk-form-small uk-form-width-large"/>
</td>
</tr>
<tr>
<td ><b>是否涉及用户系统：</b></td>
<td >
<input name="ismember" type="radio" class='uk-radio' id="ismember0" value="0"
<?php if($ismember=='0' ) echo " checked='1' " ;?> />
不涉及 &nbsp;&nbsp;
<input name="ismember" type="radio" id="ismember1" value="1"
class='uk-radio' <?php if($ismember=='1' ) echo " checked='1' " ;?> /> 涉及
</td>
</tr>
<tr>
<td ><b>后台管理菜单：</b></td>
<td >
<textarea name="menustring" rows="8" id="menustring" class="uk-textarea uk-form-small uk-form-width-large"><?php echo trim($menustring); ?></textarea>
<br />
(普通插件或模板、补丁类不要填写，模块菜单格式请参考inc/inc_menu_module.php)
</td>
</tr>
<tr>
<td ><b>使用说明文件：</b></td>
<td >
<table width="80%" border="0" cellpadding="5" cellspacing="1" class="uk-table">
<tr>
<td width="75%">
<b>使用协议或说明：</b>
<br /> 如果需要带HTML格式，请编译后点击修改时使用HTML
</td>
</tr>
<tr>
<td >
<textarea name="readmetxt" rows="10" id="readmetxt" class="uk-textarea"><?php echo trim($readmetxt); ?></textarea>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><b>安装程序：</b></td>
<td>
<input type="checkbox" name="autosetup" id="autosetup" value='1' class="np"
onclick="ShowHideField('autosetup','autosetupinput','autosetupct')" <?php if(isset($autosetup) &&
$autosetup==1) echo " checked='1'" ; ?> />
自动生成(由系统自动处理安装)
<br />
<div>
<table width="80%" border="0" cellpadding="5" cellspacing="1" class="uk-table">
<tr>
<td width="75%">
<b>请使用MySQL4.0版本格式的SQL语句:</b>
<br />
MySQL4.1/5.x版本请把创建表语句 ENGINE=MyISAM DEFAULT CHARSET=* ，改为 TYPE=MyISAM ，SQL语句允许换行，但必须用 ";换行"
表示一条SQL语句结束
<br />
如果SQL中包含有模块网址的，用 _ROOTURL_ 表示，如：_ROOTURL_/ask/index.php
</td>
</tr>
<tr>
<td >
<textarea name="setupsql40" rows="10" id="setupsql40" class="uk-textarea"><?php echo $setupsql40; ?></textarea>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td ><b>删除程序：</b></td>
<td >
<input type="checkbox" name="autodel" id="autodel" value='1' class="np"
onclick="ShowHideField('autodel','autodelinput','autodelct')" <?php if(isset($autodel) && $autodel==1)
echo " checked='1' " ; ?> />
自动生成(由系统自动处理卸载)
<br />
<div>
<table width="80%" border="0" cellpadding="5" cellspacing="1" class="uk-table">
<tr>
<td width="75%">
<b>卸载时执行的SQL语句：</b>
<br />
(SQL允许换行，但必须用 ";换行" 表示一条SQL语句结束)
</td>
</tr>
<tr>
<td >
<textarea name="delsql" rows="10" id="delsql" class="uk-textarea"><?php echo $delsql; ?></textarea>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td ><b>模块文件选项：</b></td>
<td >
<input name="rebuild" type="radio" id="rebuild1" class='uk-radio' value='yes' checked='1' /> 重新编译所有文件 &nbsp;&nbsp;
<input name="rebuild" type="radio" id="rebuild2" class='uk-radio' value='no' /> 不对[<b>文件列表</b>]内文件重编译
</td>
</tr>
<tr>
<td ><b>文件列表：</b></td>
<td >
<p>每行指定一个文件或目录，路径为相对于本目录，本目录的文件则直接用文件名即可，对于整个打包的目录，不需要指定子目录里的文件。<br />
<textarea name="filelist" rows="8" id="filelist" class="uk-textarea uk-form-small uk-form-width-large"><?php echo $filelist; ?></textarea>
</p>
</td>
</tr>
</table>
</div>
</div>
<div class="uk-card-footer " >
<div class="uk-padding-small" >
<button type="submit" class="uk-button uk-button-small uk-button-primary">提交</button>
</div>
</div>
</div>
</form>
<!-- 列表底部 -->
<div class="bar-bottom uk-flex uk-light uk-flex-right">
<div class="uk-button-group" style="margin-left: 50px;">
</div>
<div class="e1e02">Copyright &copy; 2007-2021 <a href='http://www.dedecms.com' target='_blank'><u>DedeCMS</u></a>, 上海卓卓网络科技有限公司 (DesDev, Inc.)</div>
</div>
<!-- 列表底部 -->
<!-- JS FILES -->
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit-icons.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/jquery/jquery.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/js/dede.manage.min.js"></script>
<script language="javascript">
function LoadHashCode() {
var email = $("#email").val();
var modulname = $("#modulname").val();
$.get( "module_make.php?action=gethash&email="+email+"&modulname="+modulname, function( data ) {
$("#modulcode").html(data);
});
}
</script>
<!-- / JS FILES -->
</body>
</html>
